package com.matrix.framework.core.common.global;

import java.util.List;

/**
 * 分页基类
 *
 * Copyright © 海平面工作室 版权所有
 *
 * @Author: Leo
 * @Create: 2025/06/01 19:10
 * @Since 1.0
 */
public class Pager<T> {

    /** 当前页码，从1开始 */
    private int page = 1;

    /** 每页数量 */
    private int pageSize = 10;

    /** VO集合 */
    private List<T> items;

    /** 总数 */
    private long total;

    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}